<template>
  <div class="view view-home-pc" :class="{'has-footer': footerVisible}">
    <div class="floor floor-banner floor-banner-pc hidden-xs">
      <img class="full-img" src="./img/banner.png" alt />
      <div class="floor-conatiner">
        <p class="desc">
          <span>超过</span>
          <countTo class="total" :startVal="startNum" :endVal="endNum" :duration="numDuration" />
          <span>家中小微企业的共同选择</span>
        </p>
        <img class="icon-logo" src="./img/logo.png" alt />
      </div>
    </div>
    <div class="floor-login">
      <div class="card-box">
        <div class="active-box">
          <active-desc @click-gift="handleClickTry"></active-desc>
          <img class="icon-family" src="./img/11.png" alt />
        </div>
        <LoginForm
          class="form"
          :show-active="false"
          @click-code="handleGetCode"
          @click-login="handleLogin"
        >
          <div class="form-rule" slot="header" @click="showRulePop=true">活动规则</div>
        </LoginForm>
      </div>
    </div>
    <div class="floor-resolve">
      <div class="floor-title">为您提供经营解决方案</div>
      <div class="floor-desc">更好地管生意、更快地提升经营效益</div>
      <ul class="list clearfix">
        <li class="item" @click="handleLookPop">
          <img src="./img/ic_ykj_rd.png" alt />
          <p class="title">云会计</p>
          <p>随时记账查账</p>
          <p>多人协同管账</p>
          <div class="btn">免费体验</div>
        </li>
        <li class="item" @click="handleLookPop">
          <img src="./img/ic_yjxv_rd.png" alt />
          <p class="title">云进销存</p>
          <p>随时随地</p>
          <p>轻松管理生意</p>
          <div class="btn">免费体验</div>
        </li>
        <li class="item" @click="handleLookPop">
          <img src="./img/logo_app.png" alt />
          <p class="title">精斗云V5</p>
          <p>新零售解决方案</p>
          <p>财务业务一体化</p>
          <div class="btn">申请免费体验</div>
        </li>
        <li class="item" @click="handleLookPop">
          <img src="./img/kkd.png" alt />
          <p class="title">小程序商城</p>
          <p>社交化商业营销</p>
          <p>10分钟快速搭建</p>
          <div class="btn">申请免费体验</div>
        </li>
      </ul>
    </div>

    <div class="floor-quality">
      <div class="floor-title">金蝶品质，26年沉淀</div>
      <div class="floor-desc">全球CSA云安全联盟成员</div>
      <ul class="list clearfix">
        <li class="item">
          <div class="box">
            <img src="./img/图标1.png" alt />
            <p class="title">安全认证</p>
            <p>ISO27001国际信息安全标准认证，</p>
            <p>每年接受第三方监督审核</p>
          </div>
        </li>
        <li class="item">
          <div class="box">
            <img src="./img/图标2.png" alt />
            <p class="title">数据安全</p>
            <p>国内电信级IDC机房数据存储，容灾备份</p>
            <p>无用户授权，禁止浏览任何用户私有数据</p>
          </div>
        </li>
        <li class="item">
          <div class="box">
            <img src="./img/图标3.png" alt />
            <p class="title">操作安全</p>
            <p>手势密码设置、动态手机短信</p>
            <p>验证次数限制等</p>
          </div>
        </li>
      </ul>
    </div>

    <div class="floor-custom">
      <div class="floor-title">他们都在用精斗云</div>
      <div class="floor-desc">全行业全场景适用，颠覆传统模式</div>
      <ul class="list clearfix">
        <li class="item">
          <img src="https://cdn.jdy.com/mjdy/images_new/index/case_1.png" alt />
          <div class="title">易定制</div>
          <div class="sub-title">
            <p>行业类目:服装鞋帽</p>
            <p>使用产品：云会计</p>
          </div>
          <p
            class="desc"
          >“由于我们是创业公司，我本人基本上是业务财务一起管理，以前用Excel费时费力，需要交叉核对许多数据，用了云会计之后完全不需要顾虑这些了。每日生成的分录只要核对无误，月底直接结账即可，审核速度也大大提高，云会计真是太赞了！”</p>
        </li>
        <li class="item">
          <img src="https://cdn.jdy.com/mjdy/images_new/index/case_2.png" alt />
          <div class="title">巴黎贝甜</div>
          <div class="sub-title">
            <p>行业类目：食品饮料</p>
            <p>使用产品：云进销存</p>
          </div>
          <p
            class="desc"
          >“现在通过云进销存系统就可以掌控各门店每天业务收入、成本核算、费用支出经营数据，而且各门店业务数据自动结转财务系统，实现各门店财务业务一体化管理，真是太方便了。精斗云，值得信赖。”</p>
        </li>
        <li class="item">
          <img alt src="https://cdn.jdy.com/mjdy/images_new/index/case_3.png" />
          <div class="title">大宋官窑</div>
          <div class="sub-title">
            <p>行业类目：高端工艺品</p>
            <p>使用产品：精斗云V5</p>
          </div>
          <p
            class="desc"
          >“使用精斗云V5后，门店和仓库紧密的连接在一起，库存透明化，所有门店的库存实时共享，手机APP上可以快速调拨商品，简化了业务流程，以前调货没货都要和客户解释很久，现在都不用了~客户体验都更好了。”</p>
        </li>
        <li class="item">
          <img alt src="https://cdn.jdy.com/mjdy/images_new/index/case_4.png" />
          <div class="title">匹克体育</div>
          <div class="sub-title">
            <p>行业类目：文体用品</p>
            <p>使用产品：精斗云小程序商城</p>
          </div>
          <p
            class="desc"
          >“在线下各类场景中，小程序的植入可以起到良好的流量承接和转化，即扫即用，能为用户带来良好的用户体验。这也是匹克一直所追求的，为用户提供极致的使用体验。”</p>
        </li>
      </ul>
      <div class="btn" @click="handleClickTry">免费体验</div>
    </div>

    <div class="floor-person">
      <img class="full-img" src="./img/二维码背景.png" alt />
      <div class="floor-container">
        <h3 class="floor-title">1000+财务大咖在这里</h3>
        <p class="floor-desc">助力100W+财务人升职加薪</p>
        <img class="icon-qr" src="./img/二维码.png" alt />
        <p class="qr-text">扫码免费领取财会黑卡</p>
      </div>
    </div>

    <div class="floor-person">
      <img class="full-img" src="./img/333.png" alt />
      <div class="floor-container">
        <h3 class="floor-title">领取30天免费试用机会</h3>
        <p class="floor-desc">马上开始轻松管账、管货、管生意！</p>
        <span class="btn is-active" @click="handleClickTry">立即免费试用</span>
      </div>
    </div>
    <div class="floor floor-footer" v-if="footerVisible">
      <span>金蝶精斗云，帮您轻松管账、管货、管生意</span>
      <span class="btn btn-try is-normal" @click="handleClickTry">免费体验</span>
      <a class="btn btn-call is-active" v-popover:popover1>电话咨询</a>
      <el-popover
        ref="popover1"
        placement="top-start"
        width="150"
        trigger="hover"
        content="400-830-0755"
        title="咨询请拨打"
      ></el-popover>
      <img class="icon-close" src="./img/icon-close.png" alt @click="closeFooter" />
    </div>
    <rule-popup v-model="showRulePop"></rule-popup>
    <login-popup v-model="showLoginPop" @click-login="handleLogin" @click-code="handleGetCode" />
  </div>
</template>

<script>
import homeMixin from '@/components/super-home';
export default {
  extends: homeMixin,
  data() {
    return {
      footerVisible: true,
      orgUrl: 'https://www.jdy.com/'
    };
  },
  methods: {
    closeFooter() {
      this.footerVisible = false;
    },
    handleClickTry() {
      console.log(111);
      this.showLoginPop = true;
    }
  }
};
</script>

<style lang="postcss" scoped>
.has-footer {
  padding-bottom: 72px;
}

.qr-text {
  margin-top: -50px;
  font-size: 16px;
  line-height: 24px;
  color: #212121;
}

.floor {
  position: relative;
  text-align: center;
  background-position: center;
}

.btn {
  display: inline-block;
  width: 168px;
  height: 40px;
  line-height: 40px;
  border: 1px solid #00ccc5;
  border-radius: 2px;
  font-size: 16px;
  color: #00ccc5;
  letter-spacing: 0;
  text-align: center;
  margin: 0 auto;
  margin-top: 24px;
  cursor: pointer;
  &:hover,
  &.is-active {
    color: #fff;
    background: #00ccc5;
  }
  &.is-normal {
    color: #212121;
    background: #ffffff;
    border: 1px solid #e6e6e6;
  }
}

.floor-title {
  padding-top: 72px;
  font-size: 30px;
  color: #212121;
  text-align: center;
  line-height: 30px;
}

.floor-desc {
  margin-top: 8px;
  font-size: 16px;
  color: #666666;
  text-align: center;
  line-height: 24px;
}

.full-img {
  display: block;
  width: 100%;
}

.floor-conatiner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floor-banner {
  .desc {
    height: 30px;
    margin-top: 18%;
    color: #fff;
    font-size: 24px;
    line-height: 30px;
  }
  .icon-logo {
    position: absolute;
    left: 40px;
    top: 16px;
  }
  .total {
    font-family: PingFangSC-Semibold;
    font-size: 30px;
    letter-spacing: 1.23px;
  }
}

.floor-person {
  margin-top: -2px;
  position: relative;
  text-align: center;
  color: #fff;
  .icon-bg {
    width: 100%;
  }
  .floor-title {
    padding-top: 3%;
  }
  .floor-title,
  .floor-desc {
    color: #fff;
  }
  .floor-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .icon-qr {
    margin-top: 2%;
  }
}

@media screen and (max-width: 1400px) {
  .icon-qr {
    width: 15%;
    margin-top: 1%;
  }
}

.floor-login {
  overflow: hidden;
  height: 542px;
  background: #fff;
  box-sizing: border-box;
  background: #f4f8ff;
  .card-box {
    width: 1170px;
    height: 406px;
    margin: 0 auto;
    margin-top: 56px;
    background: #ffffff;
    box-shadow: 0 6px 16px 0 rgba(78, 89, 123, 0.15);
    border-radius: 4px;
  }
  .form {
    float: right;
    width: 360px;
    padding-right: 72px;
    border: 0;
  }
  .form-rule {
    cursor: pointer;
    font-size: 16px;
    color: #666666;
    line-height: 22px;
    margin-top: 32px;
    margin-bottom: 18px;
    text-align: right;
    transition: all 300ms;
    &:hover {
      color: #f95f01;
    }
  }
}

.floor-quality {
  height: 476px;
  text-align: center;
  .list {
    width: 1200px;
    margin: 0 auto;
  }
  .box {
    width: 280px;
    height: 280px;
    padding-top: 30px;
    transition: all 500ms;
    box-sizing: border-box;
    margin-bottom: 20px;
    &:hover {
      background: #fff;
      box-shadow: 0 40px 100px 0 rgba(0, 0, 0, 0.11);
      border-radius: 4px;
      transform: translateY(-5px);
    }
  }
  .item {
    float: left;
    padding-top: 20px;
    width: 33.3333%;
    cursor: pointer;
    margin-top: 26px;
  }
  p {
    font-size: 14px;
    color: #666;
  }
  .title {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 24px;
    color: #212121;
  }
}

.active-box {
  overflow: hidden;
  float: left;
  height: 100%;
  padding-left: 110px;
}

.floor-custom {
  height: 768px;
  text-align: center;
  background: #f4f8ff;
  .btn {
    margin-top: 24px;
  }
  .list {
    width: 1200px;
    margin: 0 auto;
    margin-top: 56px;
  }
  .item {
    box-sizing: border-box;
    display: inline-block;
    float: left;
    width: 280px;
    height: 450px;
    text-align: left;
    margin-right: 16px;
    background: #fff;
    transition: all 500ms;
    cursor: pointer;
    &:hover {
      transform: translate3d(0, -15px, 0);
    }
    img {
      width: 100%;
      height: 160px;
    }
    .title,
    .sub-title,
    .desc {
      font-family: PingFangSC-Regular;
      font-size: 14px;
      color: #666666;
      letter-spacing: 0;
      text-align: justify;
      line-height: 22px;
      padding: 0 24px;
    }
    .title {
      font-family: PingFangSC-Medium;
      font-size: 20px;
      color: #212121;
      letter-spacing: 0;
      line-height: 30px;
      margin-top: 16px;
    }
    .sub-title {
      margin-top: 8px;
      margin-bottom: 16px;
    }
  }
}

.floor-resolve {
  height: 612px;
  text-align: center;
  background-image: linear-gradient(42deg, #4461b1 0%, #759bff 18%, #b2ccff 87%);
  .list {
    overflow: hidden;
    width: 1200px;
    margin: 0 auto;
    padding-top: 56px;
  }
  .item {
    float: left;
    width: 280px;
    height: 342px;
    margin-right: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px 0 rgba(48, 93, 175, 0.14);
    border-radius: 2px;
    cursor: pointer;
    transition: transform 500ms;
    &:hover {
      transform: translate3d(0, -15px, 0);
    }
    p {
      font-size: 16px;
      color: #666666;
      line-height: 24px;
    }
    img {
      margin-top: 32px;
    }
    .title {
      font-family: PingFangSC-Medium;
      font-size: 20px;
      color: #212121;
      text-align: center;
      line-height: 26px;
      margin-top: 16px;
      margin-bottom: 8px;
    }
    .btn {
      margin-top: 24px;
    }
  }
}

.floor-footer {
  position: relative;
  padding: 15px 0;
  font-size: 18px;
  .btn {
    margin-top: 0;
  }
  .btn-try {
    margin-left: 64px;
  }
  .btn-call {
    margin-left: 16px;
  }
  .icon-close {
    float: right;
    margin-top: 10px;
    margin-right: 40px;
    cursor: pointer;
  }
}
</style>
